//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by Fernflower decompiler)
//

package com.restaurant.application.indexes.accumulategoodslist.mysql;

import com.google.common.collect.Lists;
import com.nebutown.generation.Convert;
import com.nebutown.generation.PickableBean;
import com.nebutown.generation.basictype.UID;
import java.util.List;

public class AccumulateGoodsListBean implements PickableBean {
    public static final String FN_RECORDID = "recordId";
    public static final String FN_GOODSUID = "goodsUID";
    public static final String FN_GOODSNAME = "goodsName";
    public static final String FN_STATE = "state";
    public static final String FN_GOODSTYPE = "goodsType";
    public static final String FN_ACCUMULATEPOINTS = "accumulatePoints";
    public static final String FN_GOODSNUMBER = "goodsNumber";
    public static final String FN_SOLDNUMBER = "soldNumber";
    public static final String FN_GOODSID = "goodsId";
    public static final String FN_CREATETIME = "createTime";
    public static final String FN_MODIFYTIME = "modifyTime";
    public static final String FN_GOODSDESCRIBE = "goodsDescribe";
    public static final String FN_SHOPID = "shopId";
    public static final String FN_SHOPNAME = "shopName";
    public static final String FN_TYPEID = "typeId";
    public static final String FN_PRICE = "price";
    public static final String FN_UPTIME = "upTime";
    public static final String FN_DOWNTIME = "downTime";
    public static final String FN_COUPONMANAGEMENT = "couponManagement";
    public static final String FN_EXCHANGELEVEL = "exchangeLevel";
    public static final List<String> FIELD_NAMES = Lists.newArrayList(new String[]{"recordId", "goodsUID", "goodsName", "state", "goodsType", "accumulatePoints", "goodsNumber", "soldNumber", "goodsId", "createTime", "modifyTime", "goodsDescribe", "shopId", "shopName", "typeId", "price", "upTime", "downTime", "couponManagement", "exchangeLevel"});
    private Long recordId;
    private UID goodsUID;
    private String goodsName;
    private String state;
    private String goodsType;
    private Long accumulatePoints;
    private Long goodsNumber;
    private Long soldNumber;
    private String goodsId;
    private Long createTime;
    private Long modifyTime;
    private String goodsDescribe;
    private String shopId;
    private String shopName;
    private String typeId;
    private Double price;
    private Long upTime;
    private Long downTime;
    private String couponManagement;
    private String exchangeLevel;

    public AccumulateGoodsListBean(Long recordId, UID goodsUID, String goodsName, String state, String goodsType, Long accumulatePoints, Long goodsNumber, Long soldNumber, String goodsId, Long createTime, Long modifyTime, String goodsDescribe, String shopId, String shopName, String typeId, Double price, Long upTime, Long downTime, String couponManagement, String exchangeLevel) {
        this.setRecordId(recordId);
        this.setGoodsUID(goodsUID);
        this.setGoodsName(goodsName);
        this.setState(state);
        this.setGoodsType(goodsType);
        this.setAccumulatePoints(accumulatePoints);
        this.setGoodsNumber(goodsNumber);
        this.setSoldNumber(soldNumber);
        this.setGoodsId(goodsId);
        this.setCreateTime(createTime);
        this.setModifyTime(modifyTime);
        this.setGoodsDescribe(goodsDescribe);
        this.setShopId(shopId);
        this.setShopName(shopName);
        this.setTypeId(typeId);
        this.setPrice(price);
        this.setUpTime(upTime);
        this.setDownTime(downTime);
        this.setCouponManagement(couponManagement);
        this.setExchangeLevel(exchangeLevel);
    }

    public AccumulateGoodsListBean() {
    }

    public AccumulateGoodsListBean duplicate() {
        AccumulateGoodsListBean result = new AccumulateGoodsListBean();
        result.recordId = this.recordId;
        result.goodsUID = this.goodsUID;
        result.goodsName = this.goodsName;
        result.state = this.state;
        result.goodsType = this.goodsType;
        result.accumulatePoints = this.accumulatePoints;
        result.goodsNumber = this.goodsNumber;
        result.soldNumber = this.soldNumber;
        result.goodsId = this.goodsId;
        result.createTime = this.createTime;
        result.modifyTime = this.modifyTime;
        result.goodsDescribe = this.goodsDescribe;
        result.shopId = this.shopId;
        result.shopName = this.shopName;
        result.typeId = this.typeId;
        result.price = this.price;
        result.upTime = this.upTime;
        result.downTime = this.downTime;
        result.couponManagement = this.couponManagement;
        result.exchangeLevel = this.exchangeLevel;
        return result;
    }

    public String toString() {
        return Convert.toJson(this);
    }

    public Long getRecordId() {
        return this.recordId;
    }

    public void setRecordId(Long value) {
        this.recordId = value;
    }

    public AccumulateGoodsListBean withRecordId(Long value) {
        this.setRecordId(value);
        return this;
    }

    public AccumulateGoodsListBean withRecordId(Long value, Long defaultValue) {
        this.setRecordId(value == null ? defaultValue : value);
        return this;
    }

    public UID getGoodsUID() {
        return this.goodsUID;
    }

    public void setGoodsUID(UID value) {
        this.goodsUID = value;
    }

    public AccumulateGoodsListBean withGoodsUID(UID value) {
        this.setGoodsUID(value);
        return this;
    }

    public AccumulateGoodsListBean withGoodsUID(UID value, UID defaultValue) {
        this.setGoodsUID(value == null ? defaultValue : value);
        return this;
    }

    public String getGoodsName() {
        return this.goodsName;
    }

    public void setGoodsName(String value) {
        this.goodsName = value;
    }

    public AccumulateGoodsListBean withGoodsName(String value) {
        this.setGoodsName(value);
        return this;
    }

    public AccumulateGoodsListBean withGoodsName(String value, String defaultValue) {
        this.setGoodsName(value == null ? defaultValue : value);
        return this;
    }

    public String getState() {
        return this.state;
    }

    public void setState(String value) {
        this.state = value;
    }

    public AccumulateGoodsListBean withState(String value) {
        this.setState(value);
        return this;
    }

    public AccumulateGoodsListBean withState(String value, String defaultValue) {
        this.setState(value == null ? defaultValue : value);
        return this;
    }

    public String getGoodsType() {
        return this.goodsType;
    }

    public void setGoodsType(String value) {
        this.goodsType = value;
    }

    public AccumulateGoodsListBean withGoodsType(String value) {
        this.setGoodsType(value);
        return this;
    }

    public AccumulateGoodsListBean withGoodsType(String value, String defaultValue) {
        this.setGoodsType(value == null ? defaultValue : value);
        return this;
    }

    public Long getAccumulatePoints() {
        return this.accumulatePoints;
    }

    public void setAccumulatePoints(Long value) {
        this.accumulatePoints = value;
    }

    public AccumulateGoodsListBean withAccumulatePoints(Long value) {
        this.setAccumulatePoints(value);
        return this;
    }

    public AccumulateGoodsListBean withAccumulatePoints(Long value, Long defaultValue) {
        this.setAccumulatePoints(value == null ? defaultValue : value);
        return this;
    }

    public Long getGoodsNumber() {
        return this.goodsNumber;
    }

    public void setGoodsNumber(Long value) {
        this.goodsNumber = value;
    }

    public AccumulateGoodsListBean withGoodsNumber(Long value) {
        this.setGoodsNumber(value);
        return this;
    }

    public AccumulateGoodsListBean withGoodsNumber(Long value, Long defaultValue) {
        this.setGoodsNumber(value == null ? defaultValue : value);
        return this;
    }

    public Long getSoldNumber() {
        return this.soldNumber;
    }

    public void setSoldNumber(Long value) {
        this.soldNumber = value;
    }

    public AccumulateGoodsListBean withSoldNumber(Long value) {
        this.setSoldNumber(value);
        return this;
    }

    public AccumulateGoodsListBean withSoldNumber(Long value, Long defaultValue) {
        this.setSoldNumber(value == null ? defaultValue : value);
        return this;
    }

    public String getGoodsId() {
        return this.goodsId;
    }

    public void setGoodsId(String value) {
        this.goodsId = value;
    }

    public AccumulateGoodsListBean withGoodsId(String value) {
        this.setGoodsId(value);
        return this;
    }

    public AccumulateGoodsListBean withGoodsId(String value, String defaultValue) {
        this.setGoodsId(value == null ? defaultValue : value);
        return this;
    }

    public Long getCreateTime() {
        return this.createTime;
    }

    public void setCreateTime(Long value) {
        this.createTime = value;
    }

    public AccumulateGoodsListBean withCreateTime(Long value) {
        this.setCreateTime(value);
        return this;
    }

    public AccumulateGoodsListBean withCreateTime(Long value, Long defaultValue) {
        this.setCreateTime(value == null ? defaultValue : value);
        return this;
    }

    public Long getModifyTime() {
        return this.modifyTime;
    }

    public void setModifyTime(Long value) {
        this.modifyTime = value;
    }

    public AccumulateGoodsListBean withModifyTime(Long value) {
        this.setModifyTime(value);
        return this;
    }

    public AccumulateGoodsListBean withModifyTime(Long value, Long defaultValue) {
        this.setModifyTime(value == null ? defaultValue : value);
        return this;
    }

    public String getGoodsDescribe() {
        return this.goodsDescribe;
    }

    public void setGoodsDescribe(String value) {
        this.goodsDescribe = value;
    }

    public AccumulateGoodsListBean withGoodsDescribe(String value) {
        this.setGoodsDescribe(value);
        return this;
    }

    public AccumulateGoodsListBean withGoodsDescribe(String value, String defaultValue) {
        this.setGoodsDescribe(value == null ? defaultValue : value);
        return this;
    }

    public String getShopId() {
        return this.shopId;
    }

    public void setShopId(String value) {
        this.shopId = value;
    }

    public AccumulateGoodsListBean withShopId(String value) {
        this.setShopId(value);
        return this;
    }

    public AccumulateGoodsListBean withShopId(String value, String defaultValue) {
        this.setShopId(value == null ? defaultValue : value);
        return this;
    }

    public String getShopName() {
        return this.shopName;
    }

    public void setShopName(String value) {
        this.shopName = value;
    }

    public AccumulateGoodsListBean withShopName(String value) {
        this.setShopName(value);
        return this;
    }

    public AccumulateGoodsListBean withShopName(String value, String defaultValue) {
        this.setShopName(value == null ? defaultValue : value);
        return this;
    }

    public String getTypeId() {
        return this.typeId;
    }

    public void setTypeId(String value) {
        this.typeId = value;
    }

    public AccumulateGoodsListBean withTypeId(String value) {
        this.setTypeId(value);
        return this;
    }

    public AccumulateGoodsListBean withTypeId(String value, String defaultValue) {
        this.setTypeId(value == null ? defaultValue : value);
        return this;
    }

    public Double getPrice() {
        return this.price;
    }

    public void setPrice(Double value) {
        this.price = value;
    }

    public AccumulateGoodsListBean withPrice(Double value) {
        this.setPrice(value);
        return this;
    }

    public AccumulateGoodsListBean withPrice(Double value, Double defaultValue) {
        this.setPrice(value == null ? defaultValue : value);
        return this;
    }

    public Long getUpTime() {
        return this.upTime;
    }

    public void setUpTime(Long value) {
        this.upTime = value;
    }

    public AccumulateGoodsListBean withUpTime(Long value) {
        this.setUpTime(value);
        return this;
    }

    public AccumulateGoodsListBean withUpTime(Long value, Long defaultValue) {
        this.setUpTime(value == null ? defaultValue : value);
        return this;
    }

    public Long getDownTime() {
        return this.downTime;
    }

    public void setDownTime(Long value) {
        this.downTime = value;
    }

    public AccumulateGoodsListBean withDownTime(Long value) {
        this.setDownTime(value);
        return this;
    }

    public AccumulateGoodsListBean withDownTime(Long value, Long defaultValue) {
        this.setDownTime(value == null ? defaultValue : value);
        return this;
    }

    public String getCouponManagement() {
        return this.couponManagement;
    }

    public void setCouponManagement(String value) {
        this.couponManagement = value;
    }

    public AccumulateGoodsListBean withCouponManagement(String value) {
        this.setCouponManagement(value);
        return this;
    }

    public AccumulateGoodsListBean withCouponManagement(String value, String defaultValue) {
        this.setCouponManagement(value == null ? defaultValue : value);
        return this;
    }

    public String getExchangeLevel() {
        return this.exchangeLevel;
    }

    public void setExchangeLevel(String value) {
        this.exchangeLevel = value;
    }

    public AccumulateGoodsListBean withExchangeLevel(String value) {
        this.setExchangeLevel(value);
        return this;
    }

    public AccumulateGoodsListBean withExchangeLevel(String value, String defaultValue) {
        this.setExchangeLevel(value == null ? defaultValue : value);
        return this;
    }

    public Object getValueOf(String name) {
        byte var3 = -1;
        switch(name.hashCode()) {
            case -1568146203:
                if (name.equals("accumulatePoints")) {
                    var3 = 5;
                }
                break;
            case -903151951:
                if (name.equals("shopId")) {
                    var3 = 12;
                }
                break;
            case -858803723:
                if (name.equals("typeId")) {
                    var3 = 14;
                }
                break;
            case -839315448:
                if (name.equals("upTime")) {
                    var3 = 16;
                }
                break;
            case -799234740:
                if (name.equals("recordId")) {
                    var3 = 0;
                }
                break;
            case -345481567:
                if (name.equals("shopName")) {
                    var3 = 13;
                }
                break;
            case 11011647:
                if (name.equals("goodsNumber")) {
                    var3 = 6;
                }
                break;
            case 106934601:
                if (name.equals("price")) {
                    var3 = 15;
                }
                break;
            case 109757585:
                if (name.equals("state")) {
                    var3 = 3;
                }
                break;
            case 207037201:
                if (name.equals("goodsId")) {
                    var3 = 8;
                }
                break;
            case 257281341:
                if (name.equals("soldNumber")) {
                    var3 = 7;
                }
                break;
            case 554677513:
                if (name.equals("couponManagement")) {
                    var3 = 18;
                }
                break;
            case 601947201:
                if (name.equals("goodsDescribe")) {
                    var3 = 11;
                }
                break;
            case 1211388583:
                if (name.equals("modifyTime")) {
                    var3 = 10;
                }
                break;
            case 1363639073:
                if (name.equals("exchangeLevel")) {
                    var3 = 19;
                }
                break;
            case 1369213417:
                if (name.equals("createTime")) {
                    var3 = 9;
                }
                break;
            case 1394404097:
                if (name.equals("goodsName")) {
                    var3 = 2;
                }
                break;
            case 1394606000:
                if (name.equals("goodsType")) {
                    var3 = 4;
                }
                break;
            case 1427098255:
                if (name.equals("downTime")) {
                    var3 = 17;
                }
                break;
            case 2123196698:
                if (name.equals("goodsUID")) {
                    var3 = 1;
                }
        }

        switch(var3) {
            case 0:
                return this.getRecordId();
            case 1:
                return this.getGoodsUID();
            case 2:
                return this.getGoodsName();
            case 3:
                return this.getState();
            case 4:
                return this.getGoodsType();
            case 5:
                return this.getAccumulatePoints();
            case 6:
                return this.getGoodsNumber();
            case 7:
                return this.getSoldNumber();
            case 8:
                return this.getGoodsId();
            case 9:
                return this.getCreateTime();
            case 10:
                return this.getModifyTime();
            case 11:
                return this.getGoodsDescribe();
            case 12:
                return this.getShopId();
            case 13:
                return this.getShopName();
            case 14:
                return this.getTypeId();
            case 15:
                return this.getPrice();
            case 16:
                return this.getUpTime();
            case 17:
                return this.getDownTime();
            case 18:
                return this.getCouponManagement();
            case 19:
                return this.getExchangeLevel();
            default:
                return null;
        }
    }

    public void setValueOf(String name, Object value) {
        byte var4 = -1;
        switch(name.hashCode()) {
            case -1568146203:
                if (name.equals("accumulatePoints")) {
                    var4 = 5;
                }
                break;
            case -903151951:
                if (name.equals("shopId")) {
                    var4 = 12;
                }
                break;
            case -858803723:
                if (name.equals("typeId")) {
                    var4 = 14;
                }
                break;
            case -839315448:
                if (name.equals("upTime")) {
                    var4 = 16;
                }
                break;
            case -799234740:
                if (name.equals("recordId")) {
                    var4 = 0;
                }
                break;
            case -345481567:
                if (name.equals("shopName")) {
                    var4 = 13;
                }
                break;
            case 11011647:
                if (name.equals("goodsNumber")) {
                    var4 = 6;
                }
                break;
            case 106934601:
                if (name.equals("price")) {
                    var4 = 15;
                }
                break;
            case 109757585:
                if (name.equals("state")) {
                    var4 = 3;
                }
                break;
            case 207037201:
                if (name.equals("goodsId")) {
                    var4 = 8;
                }
                break;
            case 257281341:
                if (name.equals("soldNumber")) {
                    var4 = 7;
                }
                break;
            case 554677513:
                if (name.equals("couponManagement")) {
                    var4 = 18;
                }
                break;
            case 601947201:
                if (name.equals("goodsDescribe")) {
                    var4 = 11;
                }
                break;
            case 1211388583:
                if (name.equals("modifyTime")) {
                    var4 = 10;
                }
                break;
            case 1363639073:
                if (name.equals("exchangeLevel")) {
                    var4 = 19;
                }
                break;
            case 1369213417:
                if (name.equals("createTime")) {
                    var4 = 9;
                }
                break;
            case 1394404097:
                if (name.equals("goodsName")) {
                    var4 = 2;
                }
                break;
            case 1394606000:
                if (name.equals("goodsType")) {
                    var4 = 4;
                }
                break;
            case 1427098255:
                if (name.equals("downTime")) {
                    var4 = 17;
                }
                break;
            case 2123196698:
                if (name.equals("goodsUID")) {
                    var4 = 1;
                }
        }

        switch(var4) {
            case 0:
                this.setRecordId((Long)value);
                return;
            case 1:
                this.setGoodsUID((UID)value);
                return;
            case 2:
                this.setGoodsName((String)value);
                return;
            case 3:
                this.setState((String)value);
                return;
            case 4:
                this.setGoodsType((String)value);
                return;
            case 5:
                this.setAccumulatePoints((Long)value);
                return;
            case 6:
                this.setGoodsNumber((Long)value);
                return;
            case 7:
                this.setSoldNumber((Long)value);
                return;
            case 8:
                this.setGoodsId((String)value);
                return;
            case 9:
                this.setCreateTime((Long)value);
                return;
            case 10:
                this.setModifyTime((Long)value);
                return;
            case 11:
                this.setGoodsDescribe((String)value);
                return;
            case 12:
                this.setShopId((String)value);
                return;
            case 13:
                this.setShopName((String)value);
                return;
            case 14:
                this.setTypeId((String)value);
                return;
            case 15:
                this.setPrice((Double)value);
                return;
            case 16:
                this.setUpTime((Long)value);
                return;
            case 17:
                this.setDownTime((Long)value);
                return;
            case 18:
                this.setCouponManagement((String)value);
                return;
            case 19:
                this.setExchangeLevel((String)value);
                return;
            default:
        }
    }

    public boolean hasField(String name) {
        return FIELD_NAMES.contains(name);
    }

    public int hashCode() {
        return this.signature().hashCode();
    }

    public boolean equals(Object o) {
        return !(o instanceof AccumulateGoodsListBean) ? false : this.signature().equals(((AccumulateGoodsListBean)o).signature());
    }

    public String signature() {
        throw new RuntimeException("Bean AccumulateGoodsListBean has no signature defined, no hash code or equals possible.");
    }
}
